import requests
import json

# 测试API端点
url = "http://127.0.0.1:8000/RAG/select"

# 测试查询
params = {
    "question": "修仙小说的境界划分是怎样的"
}

try:
    # 发送POST请求
    response = requests.post(url, params=params)
    
    # 打印响应
    print("状态码:", response.status_code)
    print("响应内容:")
    print(json.dumps(response.json(), indent=2, ensure_ascii=False))
    
except Exception as e:
    print(f"请求失败: {e}")